import { ca } from 'element-plus/es/locales.mjs';
import {request} from './Request';
//搜索卡片
export const selectCard = (data) => {
    return request({
        url: '/card/selectCard',
        method: 'post',
        data:data
    })
}

//添加卡片
export const insertCard = (data) => {
    return request({
        url: '/card/insertCard',   
        method: 'post',
        data:data
    })
}

//删除卡片
export const deleteCard = (id) => {
    return request({
        url: '/card/deleteCard',
        method: 'post',
        data:{
            cardId:id
        }
    })
}

//更新卡片出售状态
export const toggleSaleStatus = (data) => {
    return request({
        url: '/card/toggleSaleStatus',
        method: 'post',
        data:data
    })
}
//获取卡片种类
export const selectCardmate = (name) => {
    return request({
        url: '/card/selectCardmate',
        method: 'post',
        data:name
    })
}
//获取仓库
export const selectWarehouseName = (name) => {
    return request({
        url: '/card/selectWarehouseName',
        method: 'post',
        data:name
    })
}

